//
//  HEDoctorServerNoticeCell.m
//  HealthFamily
//
//  Created by 吴欧 on 2020/11/17.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import "HEDoctorServerNoticeCell.h"

@interface HEDoctorServerNoticeCell ()

@property (nonatomic, strong) UILabel *titleLb;
@property (nonatomic, strong) UITextView *contentLb;

@end

@implementation HEDoctorServerNoticeCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self initUI];
    }
    return self;
}

- (void)initUI {
    self.contentView.backgroundColor = CViewBgColor;

    UIView *warp = [UIView new];
    warp.backgroundColor = KWhiteColor;
    [self.contentView addSubview:warp];
    warp.layer.masksToBounds = YES;
    warp.layer.cornerRadius = 8;
    
    [warp mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView).mas_offset(10);
        make.left.equalTo(self.contentView).mas_offset(10);
        make.right.equalTo(self.contentView).mas_offset(-10);
        make.bottom.equalTo(self.contentView).mas_offset(-10);
    }];
    
    // 姓名
    _titleLb = [UILabel new];
    _titleLb.text = @"服务内容";
    _titleLb.font = DYBlodFont(18);
    [warp addSubview:_titleLb];
    
    // 描述
    _contentLb = [UITextView new];
    _contentLb.text = @"私人医生服务说明：\n绑定就诊人：一个订单仅限一个患者使用，就诊人绑定后一旦使用无法更改就诊人。\n费用说明：服务包费用不包含线下就医产生的费用，除非服务包介绍中特色说明。线下就医的挂号费、就诊费、检查费、药品费、手术费、住院费等费用，需您另行付费。\n退款权益：除特别提示情况外，服务包自购买日起7天内未使用，可申请无理由退款。服务包一经购买，即自动建立您与医生之间的有效期内服务契约，非平台原因不予退款。\n服务咨询回复时效说明：服务医生日常工作较繁忙，我们会尽快提醒医生12小时内给与您回复，请耐心等待。如紧急情况可联系客服协助处理。\n客服联系方式：0731-12345678 周一至周日 9：00 - 17：00 （含法定节假日）\n本产品最终解释权归健康老龄所有";
    _contentLb.editable=NO;
    _contentLb.scrollEnabled = NO;
    _contentLb.textColor = CNavLightBlackColor;
    _contentLb.font = DYFont(15);
    _contentLb.backgroundColor = UIColor.clearColor;
    [self.contentView addSubview:_contentLb];
    
    
    [_titleLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(warp).mas_offset(15);
        make.left.equalTo(warp.mas_left).mas_offset(10);
        make.right.equalTo(warp.mas_right).mas_offset(-10);
    }];
    
    [_contentLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_titleLb.mas_bottom).mas_offset(10);
        make.left.equalTo(_titleLb.mas_left);
        make.right.equalTo(_titleLb.mas_right);
        make.bottom.equalTo(warp.mas_bottom).mas_offset(-10);
    }];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
